package com.xuan.friend.domain.contestQuestion;

import com.baomidou.mybatisplus.annotation.*;
import com.xuan.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 竞赛-题目 关系表
 * @TableName tb_contest_question
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="tb_contest_question")
@Data
public class ContestQuestion extends BaseEntity implements Serializable {
    /**
     * 竞赛-题目关系表 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long contestQuestionId;

    /**
     * 竞赛id
     */
    private Long contestId;

    /**
     * 题目id
     */
    private Long questionId;

    /**
     * 题目顺序,可用于自定义和竞赛内题目切换
     */
    private Integer questionOrder;

    /**
     * 是否删除 0:未删除  1:已删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}